<?php // gui file xuong client
ob_start();
session_start();
$ketqua="Tạo sao lưu dữ liệu thành công !";
$backup_name_tmp=$_SESSION['backup_name_tmp'];
$backup_name=$_SESSION['backup_name'];

// We'll be outputting a .sql
header('Content-type: text/sql');

// It will be called $backup_name_tmp.sql
header('Content-Disposition: attachment; filename="'.$backup_name_tmp.'".sql');

// The SQL source is in $backup_name
$test= "../".$backup_name;
readfile($test);
$ketqua="Tạo sao lưu dữ liệu thành công !";
$_SESSION['ketqua'] = $ketqua;
?>